//
//  ServiceTableViewCell.m
//  Item A House
//
//  Created by dlios on 15/5/23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ServiceTableViewCell.h"

@implementation ServiceTableViewCell
- (void)dealloc
{
    [super dealloc];
}


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.contentView setBackgroundColor:[UIColor lightGrayColor]];
        UIView *buyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width / 2 - 1, 100)];
        [buyView setBackgroundColor:[UIColor whiteColor]];
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 25, 100, 20)];
        
        titleLabel.text = @"楼盘优惠";
        [titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];
        UILabel *contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 45, 100, 20)];
        contentLabel.text = @"独家优惠";
        contentLabel.font = [UIFont systemFontOfSize:13];
        contentLabel.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
        [buyView addSubview:titleLabel];
        [buyView addSubview:contentLabel];
        [self.contentView addSubview:buyView];
        [titleLabel release];
        [contentLabel release];
        [buyView release];
        
        UIView *sellView = [[UIView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 1, 0, [UIScreen mainScreen].bounds.size.width / 2 - 2, 100)];
        [sellView setBackgroundColor:[UIColor whiteColor]];
        UILabel *titleTwo = [[UILabel alloc] initWithFrame:CGRectMake(20, 25, 100, 20)];
        titleTwo.text = @"我要卖房";
        [titleTwo setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];
        UILabel *contentTwo = [[UILabel alloc] initWithFrame:CGRectMake(20, 45, 100, 20)];
        contentTwo.text = @"快速卖房";
        contentTwo.font = [UIFont systemFontOfSize:13];
        contentTwo.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
        [sellView addSubview:titleTwo];
        [sellView addSubview:contentTwo];
        [self.contentView addSubview:sellView];
        [titleTwo release];
        [contentTwo release];
        [sellView release];
    }
    return self;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
